home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5862 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.2 KB  |  48 lines

  1. Newsgroups: comp.sys.mac.programmer.codewarrior,comp.lang.c++
  2. Path: info.physics.utoronto.ca!news
  3. From: Andrew Datars <datars@tiger.physics.utoronto.ca>
  4. Subject: Re: using a template parameter as a qualifier -- legal or not?
  5. Message-ID: <31180B8D.41C6@tiger.physics.utoronto.ca>
  6. Nntp-Posting-Host: husky.physics.utoronto.ca
  7. Sender: news@info.physics.utoronto.ca (System Administrator)
  8. Mime-Version: 1.0
  9. X-Mailer: Mozilla 2.0b6a (X11; I; IRIX64 6.0.1 IP26)
  10. Content-Type: text/plain; charset=us-ascii
  11. Organization: Dept. of Physics, Univ. of Toronto
  12. Date: Wed, 7 Feb 1996 02:16:45 GMT
  13. References: <rshapiro-0602961258310001@esb.bbn.com> <3117C2B0.41C6@tiger.physics.utoronto.ca> <rshapiro-0602961711130001@esb.bbn.com>
  14. Content-Transfer-Encoding: 7bit
  15.  
  16. R Shapiro wrote:
  17. > My first question is, *should* this work, ie is it legal according to the
  18. > more or less official C++ standard? I can't tell from my reading of ARM
  19. > and the relevant portions of the draft standard. What's your take?
  20. > The fact that other compilers support it isn't quite what I'm after, since
  21. > some compilers support things that are definitely not following the
  22. > standard. If this is a bug in CodeWarrior, I'll report it and Metrowerks
  23. > will probably fix it. But I still don't know if it really is a bug or not.
  24. > --
  25. > rs/rshapiro@bbn.com
  26.  
  27. Well I don't know if it should be legal or not. I actually asked this
  28. question of the net several times in my quest to use it, and I never
  29. received a conclusive answer. The reason I think that it should be legal
  30. is the wide support( from every compiler I have tried that was released in the
  31. last year). Further, whenever it wasn't supported, the compiler
  32. never reacted in a graceful manner, which leads me to believe that those
  33. compilers hadn't considered such a use. As I said, I have crashed compilers
  34. with it.
  35.  
  36. My suggestion would be to talk to Metrowerks.
  37.  
  38. Let me know if you find out if this is legal. I use it a lot, now that it works
  39. and would be quite worried if this feature were to be fixed in a later release.
  40. :)
  41.  
  42. -- 
  43. Andrew Datars    (datars@tiger.physics.utoronto.ca)
  44. Quantum Transport/General Computer Helper             phone:(416)978-6185
  45. Dept. of Physics, Univ. of Toronto                 fax:  (416)978-2537
  46.